import { defineStore } from 'pinia'

export const useTalkStore = defineStore('talk', {
    //state要写成一个函数 ===真正存数据的地方
    state() {
        return {
            talkList: [
                {id: 1, title:'标题一'},
                {id: 2, title:'标题二'},
                {id: 3, title:'标题三'}
            ]
        }
    }
})